package com.tank.demo.entry.wall;

import com.tank.demo.abstractFactory.BaseWall;
import com.tank.demo.utils.ResourceMgr;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.awt.*;

public class RetroWall extends BaseWall {

    public RetroWall(Integer x, Integer y) {
        super(x, y);
    }

    @Override
    public void paint(Graphics g) {
        Color c = g.getColor();
        g.setColor(Color.GRAY);
        g.drawImage(ResourceMgr.wall, x, y, null);
        g.setColor(c);
    }
}
